package com.magist.manage.copyrights.service;

import com.github.pagehelper.PageInfo;
import com.magist.core.entity.Page;
import com.magist.core.service.BaseService;
import com.magist.manage.copyrights.dto.SupplyLinkMansDto;
import tk.mybatis.mapper.entity.Example;

import  com.magist.manage.copyrights.entity.SupplyLinkMans;

import java.util.List;

public interface SupplyLinkMansService extends BaseService<SupplyLinkMans>{

    /**
     * 分页方法
     * @param example
     * @param page
     * @return
     */
    PageInfo<SupplyLinkMans> page(Example example, Page page);

    /**
     * 添加/修改联系人
     * @param supplyLinkMans
     */
    void saveOrUpdateSupplyLinkMan(SupplyLinkMans supplyLinkMans);

    void saveOrUpdateSupplyLinkMans(String supplyId, List<SupplyLinkMansDto> supplyLinkMansDtos);
}